package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient//标注当前工程是eureka的客户端
@EnableFeignClients
//表示开启服务降级处理
@EnableHystrix
public class CartAndPayApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartAndPayApplication.class,args);
    }
}
